function createPerson(name,age,score){
    let obj = new Object();
    obj.name = name;
    obj.age = age;
    obj.score = score;
    obj.sayName = function(){
        console.log(this.name);
    }
    return obj;
};
let p1 = createPerson('alice',25,'85');
let p2 = createPerson('smith',46,'78');
console.log(p1);
p1.sayName()
console.log(p2);
p2.sayName()
// console.log(p1 === p2 );
// { name: 'alice', age: 25, score: '85', sayName: [Function] }
// alice
// { name: 'smith', age: 46, score: '78', sayName: [Function] }
// smith
// false